<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>l8w8jwt: l8w8jwt_claim Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">l8w8jwt
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="structl8w8jwt__claim-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">l8w8jwt_claim Struct Reference</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="claim_8h_source.html">claim.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:af5fe12c9b0727d8a2070313d33763ca0" id="r_af5fe12c9b0727d8a2070313d33763ca0"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af5fe12c9b0727d8a2070313d33763ca0">key</a></td></tr>
<tr class="separator:af5fe12c9b0727d8a2070313d33763ca0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ed9984d329ad149ebbe7194cd356eaf" id="r_a9ed9984d329ad149ebbe7194cd356eaf"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9ed9984d329ad149ebbe7194cd356eaf">key_length</a></td></tr>
<tr class="separator:a9ed9984d329ad149ebbe7194cd356eaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8c403d324499e780ab20aadaf56d496" id="r_aa8c403d324499e780ab20aadaf56d496"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa8c403d324499e780ab20aadaf56d496">value</a></td></tr>
<tr class="separator:aa8c403d324499e780ab20aadaf56d496"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af13302ab4ee58244ced27e0039f6b3d4" id="r_af13302ab4ee58244ced27e0039f6b3d4"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af13302ab4ee58244ced27e0039f6b3d4">value_length</a></td></tr>
<tr class="separator:af13302ab4ee58244ced27e0039f6b3d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8d186e83c0af008f4ff85368068d091" id="r_af8d186e83c0af008f4ff85368068d091"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af8d186e83c0af008f4ff85368068d091">type</a></td></tr>
<tr class="separator:af8d186e83c0af008f4ff85368068d091"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Struct containing a jwt claim key-value pair.</p>
<p>If allocated on the heap by the decode function, remember to call <code>l8w8jwt_claims_free()</code> on it once you're done using it. </p>
</div><h2 class="groupheader">Member Data Documentation</h2>
<a id="af5fe12c9b0727d8a2070313d33763ca0" name="af5fe12c9b0727d8a2070313d33763ca0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af5fe12c9b0727d8a2070313d33763ca0">&#9670;&#160;</a></span>key</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* l8w8jwt_claim::key</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The token claim key (e.g. "iss", "iat", "sub", etc...). </p>
<p>NUL-terminated C-string! </p>

</div>
</div>
<a id="a9ed9984d329ad149ebbe7194cd356eaf" name="a9ed9984d329ad149ebbe7194cd356eaf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ed9984d329ad149ebbe7194cd356eaf">&#9670;&#160;</a></span>key_length</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t l8w8jwt_claim::key_length</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>key string length. </p>
<p>Set this to <code>0</code> if you want to make the encoder use <code>strlen(key)</code> instead. </p>

</div>
</div>
<a id="af8d186e83c0af008f4ff85368068d091" name="af8d186e83c0af008f4ff85368068d091"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8d186e83c0af008f4ff85368068d091">&#9670;&#160;</a></span>type</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int l8w8jwt_claim::type</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The type of the claim's value. </p>
<p>0 = string, 1 = integer, 2 = number, 3 = boolean, 4 = null, 5 = array, 6 = object, 7 = other. </p><dl class="section see"><dt>See also</dt><dd><a href="https://www.w3schools.com/js/js_json_datatypes.asp">https://www.w3schools.com/js/js_json_datatypes.asp</a> </dd></dl>

</div>
</div>
<a id="aa8c403d324499e780ab20aadaf56d496" name="aa8c403d324499e780ab20aadaf56d496"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa8c403d324499e780ab20aadaf56d496">&#9670;&#160;</a></span>value</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* l8w8jwt_claim::value</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The claim's value as a NUL-terminated C-string. </p>

</div>
</div>
<a id="af13302ab4ee58244ced27e0039f6b3d4" name="af13302ab4ee58244ced27e0039f6b3d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af13302ab4ee58244ced27e0039f6b3d4">&#9670;&#160;</a></span>value_length</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t l8w8jwt_claim::value_length</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>value string length. </p>
<p>Set this to <code>0</code> if you want to make the encoder use <code>strlen(value)</code> instead. </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>include/l8w8jwt/<a class="el" href="claim_8h_source.html">claim.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0
</small></address>
</body>
</html>
